package dao;

import entity.Department;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;


public interface DepartmentMapper {
    //根据depID查询二级学院
    Department getDepartmentByDepID(String DepID);

    //查询全部二级学院
    List<Department> getAllDepartments();

    //更新二级学院信息
    boolean updateDepartment(Department department);
    //删除二级学院信息
    boolean deleteDepartment(String depID);

    //新增二级学院
    boolean addDepartment(Department department);

    //模糊查询二级学院
    List<Department> getDepartmentByDepNameORDepID(@Param("depID") String depID,@Param("depName") String depName);
}
